package com.dinzeer.sjapadder.sa;

import com.dinzeer.legendreliclib.lib.compat.slashblade.Drives;
import mods.flammpfeil.slashblade.slasharts.Drive;
import net.minecraft.world.entity.LivingEntity;
import net.minecraft.world.phys.Vec3;

import java.awt.*;

public class RainBowDrive {


    public static void doslash(LivingEntity drive){
        doDrive(drive,2f,1);
    }
    
    public static void doDrive(LivingEntity drive,float speed,float damage){
        Drive.doSlash(drive,90,20, Color.BLUE.getRGB(), Vec3.ZERO,false,(damage/2)/12,null,speed);
        Drive.doSlash(drive,90,20, Color.BLUE.getRGB(), Vec3.ZERO,false,(damage/2)/12,null,speed-0.1f);
        Drive.doSlash(drive,90,20, Color.GREEN.getRGB(), Vec3.ZERO,false,(damage/2)/12,null,speed-0.2f);
        Drive.doSlash(drive,90,20, Color.GREEN.getRGB(), Vec3.ZERO,false,(damage/2)/12,null,speed-0.3f);
        Drive.doSlash(drive,90,20, Color.YELLOW.getRGB(), Vec3.ZERO,false,(damage/2)/12,null,speed-0.4f);
        Drive.doSlash(drive,90,20, Color.YELLOW.getRGB(), Vec3.ZERO,false,(damage/2)/12,null,speed-0.5f);
        Drive.doSlash(drive,90,20, Color.ORANGE.getRGB(), Vec3.ZERO,false,(damage/2)/12,null,speed-0.6f);
        Drive.doSlash(drive,90,20, Color.ORANGE.getRGB(), Vec3.ZERO,false,(damage/2)/12,null,speed-0.7f);
        Drive.doSlash(drive,90,20, Color.MAGENTA.getRGB(), Vec3.ZERO,false,(damage/2)/12,null,speed-0.8f);
        Drive.doSlash(drive,90,20, Color.MAGENTA.getRGB(), Vec3.ZERO,false,(damage/2)/12,null,speed-0.9f);
        Drive.doSlash(drive,90,20, Color.RED.getRGB(), Vec3.ZERO,false,(damage/2)/12,null,speed-1.0f);
        Drive.doSlash(drive,90,20, Color.RED.getRGB(), Vec3.ZERO,false,(damage/2)/12,null,speed-1.1f);
        Drive.doSlash(drive,90,20, Color.DARK_GRAY.getRGB(), Vec3.ZERO,false,(damage/2)/12,null,speed-1.2f);
    }
}
